<?php
require_once('lanceur_spip.php');

class AllSpipTests extends SpipTestSuite {
    function AllSpipTests() {
        $this->SpipTestSuite('All tests of PDK Plugin');
        // Стандартный вариант плагина SimpleTest. На локальной машине не работают даже простейшие тесты.
		//$this->addDir(__FILE__);
        
        // Так не работает (какие то проблемы с вызовом конструкторов)
        //$this->addFile(_DIR_PLUGIN_PDK.'/tests/testClassPdkArticleModel.php');
        
        require_once(_DIR_PLUGIN_PDK.'tests/classes/models/TestClassProductModel.php');
        $this->addTestCase(new TestClassProductModel());
        
        require_once(_DIR_PLUGIN_PDK.'tests/classes/models/TestClassPdkArticleModel.php');
        $this->addTestCase(new TestClassPdkArticleModel());
        
        require_once(_DIR_PLUGIN_PDK.'tests/classes/models/TestClassPdkMotArticleModel.php');
        $this->addTestCase(new TestClassPdkMotArticleModel());
        
        require_once(_DIR_PLUGIN_PDK.'tests/classes/models/TestClassPdkRubriqueModel.php');
        $this->addTestCase(new TestClassPdkRubriqueModel());
        
        require_once(_DIR_PLUGIN_PDK.'tests/classes/models/TestClassPdkAuteurModel.php');
        $this->addTestCase(new TestClassPdkAuteurModel());
                
        require_once(_DIR_PLUGIN_PDK.'tests/classes/TestClassPdkFieldsContainer.php');
        $this->addTestCase(new TestClasspdkFieldsContainer());
        
        require_once(_DIR_PLUGIN_PDK.'tests/classes/TestClassPdkRechercher.php');
        $this->addTestCase(new TestClassPdkRechercher());
        
        require_once(_DIR_PLUGIN_PDK.'tests/functions/TestFunctions_pdk_common.php');
        $this->addTestCase(new TestFunctions_pdk_common());
		
		require_once(_DIR_PLUGIN_PDK.'tests/classes/TestClass_pdk_validation.php');
        $this->addTestCase(new TestClass_pdk_Validation());
    }
}

?>
